using System;
using System.Collections.Generic;
using System.Text;

namespace Bussiness.Exc
{
    public class BussinessExc : Exception
    {
        public BussinessExc(string message)
            : base(message)
        {

        }
        private int errCodeSQL=0;
        private int errCodeUser=0;

        public int ErrCodeSQL
        {
            get { return errCodeSQL; }
            set
            {
                errCodeSQL = value;
            }
        }

        public int ErrCodeUser
        {
            get { return errCodeUser; }
            set
            {
                errCodeUser = value;
            }
        }

        public BussinessExc(string message,int errCodeSQL)
            : base(message)
        {
            this.errCodeSQL = errCodeSQL;
        }

        public BussinessExc(string message, int errCodeUser, int errCodeSQL)
            : base(message)
        {
            this.errCodeSQL = errCodeSQL;
            this.errCodeUser = errCodeUser;
        }
    }
}
